/**
 * TextPage 页面样式文件
 * 文件功能：定义TextPage组件的样式，包括布局、文字效果、按钮样式等
 * 作者：Assistant
 * 日期：2024
 */

/* TextPage 主页面容器样式 */
.text-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* TextPage 页面内容容器 */
.text-page-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 主要内容区域 */
.text-main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 文本容器 */
.text-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  backdrop-filter: blur(10px);
}

/* 标题样式 */
.text-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 内容文字样式 */
.text-content {
  margin-bottom: 30px;
}

.text-content p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.text-content p:last-child {
  margin-bottom: 0;
}

/* 操作按钮区域 */
.text-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* 按钮基础样式 */
.text-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

/* 主要按钮样式 */
.text-btn-primary {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.text-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.text-btn-primary:active {
  transform: translateY(0);
}


.text-bg{
  width: 150px;
  height: 55px;
  position: absolute;
  right: 20px;
  top: 80px;
}

.text-tip{
  position: absolute;
  right: 20px;
  top: 170px;
}

.text-tip-percent{
  font-size: 70px;
  font-weight: bold;
  color: #fff;
  text-shadow: 3px 3px 6px #d35c36;
}

.text-tip-text-nht{
  width: 200px;
  height: 40px;
  background: linear-gradient(180deg, #fffbf9 0%, #ffd1b2 100%);
  position: absolute;
  right: 0px;
  top: 100px;
  border-radius: 40px;
  line-height: 40px;
  color: #f26b32;
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  box-shadow: -2px 0 4px #d25a35, 2px 0 4px #d25a35, 0 2px 4px #d25a35;
}

.text-tip-text{
  background-image: url('../../assets/login/cyc.png');
  background-size: 100% 100%;
  width: 95%;
  height: 360px;
  background-repeat: no-repeat;
  position: absolute;
  left: 2%;
  bottom: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.text-btn{
    position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.text-btn-text{
  height: 60px;
  width: 150px;
  line-height: 55px;
  color: #fff;
  font-size: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url('../../assets/icon/dbxl.png');
}

.text-btn-rangk{
    height: 60px;
  width: 150px;
  line-height: 55px;
  color: #fff;
  font-size: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url('../../assets/icon/dbxl.png');
  margin-left: 20px;
}


/* 弹框遮罩层样式 */
.package-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 弹框内容样式 */
.package-modal-content {
  position: relative;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 200px;
}

.text-you-guess-text-styles{
  font-size: 20px;
  font-weight: bold;
  color: #9d0929;
  background-image: url('../../assets/icon/xzxl.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 110px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}
.text-you-guess{
  margin-top: 20px;
}

.text-you-guess-text{
  margin-bottom: 40px;
} 
.text-ta-guess-text-styles{
  font-size: 20px;
  font-weight: bold;
  color: #14108c;
  background-image: url('../../assets/icon/tcd.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 110px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.text-ta-guess-line{
  height: 2px;
  width: 85%;
  background-color: #f26b32;
}

/* 弹框关闭按钮样式 */
.package-modal-close-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: none;
}

.package-modal-close-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 弹框主体内容样式 */
.package-modal-body {
  width: 90%;
  padding: 0px;
  text-align: center;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  margin-top: 10px;
}

.package-modal-title {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
}

/* 已选择的行李展示区域 */
.package-items-grid {
  display: flex;
  justify-content: center;
  gap: 0.7px;
  margin-top: 10px;
}

.package-item {
  width: 65px;
  height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.package-item-icon {
  width: 45px;
  height: 45px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
    position: relative;
  top: 5px;
}

.package-item-text {
  font-size: 10px;
  color: #333;
  text-align: center;
  margin-top: 2px;
  text-shadow: none;
  position: relative;
  top: 15px;
}

@media (max-width: 820px) and (min-width: 801px){
  .package-modal-content{
    width: 60% !important;
  }
  .package-items-grid{
        gap: 24.7px
  }
}

/* 响应式设计 - 大屏设备 */
@media (min-width: 1200px) {
  .text-container {
    max-width: 500px;
    padding: 50px 40px;
  }

  .text-title {
    font-size: 36px;
  }

  .text-content p {
    font-size: 20px;
  }
}

/* 响应式设计 - 中等屏幕 */
@media (max-width: 768px) {
  .text-container {
    padding: 30px 20px;
    max-width: 350px;
  }

  .text-title {
    font-size: 28px;
  }

  .text-content p {
    font-size: 16px;
  }

  .text-btn {
    padding: 10px 25px;
    font-size: 14px;
    width: 100%;
  }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
  .text-main-content {
    padding: 15px;
  }

  .text-container {
    padding: 25px 15px;
    width: 95%;
  }

  .text-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .text-content {
    margin-bottom: 25px;
  }

  .text-content p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .text-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

/* 响应式设计 - 414px宽度设备优化 */
@media (max-width: 414px) {
  .text-container {
    padding: 20px 12px;
    border-radius: 15px;
  }

  .text-title {
    font-size: 22px;
  }

  .text-content p {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* 响应式设计 - 极小屏优化 */
@media (max-width: 360px) {
  .text-container {
    padding: 18px 10px;
  }

  .text-title {
    font-size: 20px;
  }

  .text-content p {
    font-size: 12px;
  }

  .text-btn {
    padding: 6px 15px;
    font-size: 12px;
  }
}

/* 针对390宽度的特殊设置 */
@media (max-width: 395px) and (min-width: 385px) {
  .text-tip{
    top: 135px;
  }
}

/* 针对360宽度的特殊设置 */
@media (max-width: 365px) and (min-width: 355px) {
  .text-tip-text{
    bottom: 60px;
  }

  .text-btn{
    bottom: 0px;
  }
  .package-item{
    width: 60px;
  }

  .share-content{
    font-size: 25px !important;
  }
  .ranking-item{
    width: 100%;
  } 
  .ranking-list{
    height: 350px !important;
  }
  .package-item-img-ranking{
    width: 20px;
    height: 20px;
  }
  .package-item-icon-ranking{
    width: 40px;
    height: 40px;
  }

  .ranking-item{
    gap: 0 !important;
  }

  .text-btn-text{
    height: 45px;
    width: 120px;
    font-size: 14px;
    line-height: 43px;
  }

  .text-btn-rangk{
    height: 45px;
    width: 120px;
    font-size: 14px;
    line-height: 43px;
  }
}